package com.ilancuo.template.factory;

public class Test {

    public static void main(String... args) {
        try {
            Food milk = FoodFactory.getFood("milk");
            if (milk != null)
                milk.get();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
